<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'contact.label', default: 'Contact')}"/>
    <title>修改客户信息</title>
    <style>
    @media screen and (min-width:998px) and (max-width:1720px) {
        .mediaStyle {
            width: 100% !important;
            text-align: left !important;
        }
    }
    </style>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li>
                        <g:link controller="menu" action="index">CINDATA</g:link>
                    </li>
                    <li class="active">
                        <span>修改客户信息</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                修改客户信息
            </h2>
        </div>
    </div>
</div>


<g:if test="${flash.message}">
    <div class="message alert alert-info" role="status">${flash.message}</div>
</g:if>
<g:hasErrors bean="${this.menu}">
    <ul class="errors" role="alert">
        <g:eachError bean="${this.menu}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                    error="${error}"/></li>
        </g:eachError>
    </ul>
</g:hasErrors>


<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                修改客户信息
            </div>

            <div class="panel-body form-horizontal">

                <div class="panel-heading">
                    3.所购房产情况
                </div>

                <g:form action="editClientLoanRiskEvaluation">
                    <input type="hidden" value="${contactSurveyReport?.id}" name="id">
                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">交易房屋地址</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sourceAddress" id="sourceAddress" value="${contactSurveyReport?.sourceAddress}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">建筑面积</label>
                        <div class="col-md-3">
                            <div class="input-group m-b">
                                <g:textField class="form-control" type="text" name="sourceBuildArea" id="sourceBuildArea" value="${contactSurveyReport?.sourceBuildArea}" placeholder="请输入数字"/>
                                <span class="input-group-addon">平方米</span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">抵押物所有人</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="houseOwner" id="houseOwner" value="${contactSurveyReport?.houseOwner}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">房屋楼龄</label>
                        <div class="col-md-3">
                            <div class="input-group m-b">
                                <g:textField class="form-control" type="text" name="houseAge" id="houseAge" value="${contactSurveyReport?.houseAge}" placeholder="请输入数字"/>
                                <span class="input-group-addon">年</span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required" >房产交易价格</label>
                        <div class="col-md-3" >
                            <div class="input-group m-b">
                                <input type="text" class="form-control" name="transactionPrice" id="transactionPrice" value="${contactSurveyReport?.transactionPrice}" placeholder="请输入数字" >
                                <span class="input-group-addon">元</span>
                            </div>

                        </div>
                        <label class="col-md-2 control-label is-required" >首付款</label>
                        <div class="col-md-2" >
                            <div class="input-group m-b">
                                <input type="text" class="form-control" name="firstPayment"  value="${contactSurveyReport?.firstPayment}" placeholder="请输入数字" >
                                <span class="input-group-addon">元</span>
                            </div>
                        </div>
                        <label class="col-md-1 control-label is-required">首付比例</label>
                        <div class="col-md-2">
                            <div class="input-group m-b">
                                <input type="text" class="form-control" name="firstPaymentRatio"  value="${contactSurveyReport?.firstPaymentRatio}" placeholder="请输入数字" >
                                <span class="input-group-addon">%</span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required">房屋座向</label>
                        <div class="col-md-8">
                            <div class="radio radio-info radio-inline">
                                <g:radio name="orientation" value="东北" checked="${contactSurveyReport?.orientation == '东北'}"/>
                                <label for="sex1">东北</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="orientation" value="正东" checked="${contactSurveyReport?.orientation == '正东'}"/>
                                <label for="sex2">正东</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="orientation" value="东南" checked="${contactSurveyReport?.orientation == '东南'}"/>
                                <label for="sex2">东南</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="orientation" value="正南" checked="${contactSurveyReport?.orientation == '正南'}"/>
                                <label for="sex2">正南</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="orientation" value="西南" checked="${contactSurveyReport?.orientation == '西南'}"/>
                                <label for="sex2">西南</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="orientation" value="西北" checked="${contactSurveyReport?.orientation == '西北'}"/>
                                <label for="sex2">西北</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="orientation" value="西北" checked="${contactSurveyReport?.orientation == '西北'}"/>
                                <label for="sex2">西北</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="orientation" value="正北" checked="${contactSurveyReport?.orientation == '正北'}"/>
                                <label for="sex2">正北</label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required">评估价格</label>
                        <div class="col-md-3">
                            <div class="input-group m-b">
                                <input type="text" class="form-control" name="evaluateTotalPrice"  value="${contactSurveyReport?.evaluateTotalPrice}" placeholder="请输入数字" >
                                <span class="input-group-addon">元</span>
                            </div>

                        </div>

                        <label class="col-md-2 control-label is-required">价格合理性判断</label>
                        <div class="col-md-3">
                            <div class="radio radio-info radio-inline">
                                <g:radio name="isPriceReasonable" value="合理" checked="${contactSurveyReport?.isPriceReasonable == '合理'}"/>
                                <label for="sex1">合理</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="isPriceReasonable" value="一般" checked="${contactSurveyReport?.isPriceReasonable == '一般'}"/>
                                <label for="sex2">一般</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="isPriceReasonable" value="不合理" checked="${contactSurveyReport?.isPriceReasonable == '不合理'}"/>
                                <label for="sex2">不合理</label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required">房屋性质</label>
                        <div class="col-md-8">
                            <div class="radio radio-info radio-inline">
                                <g:radio name="houseNature" value="商品房" checked="${contactSurveyReport?.houseNature == '商品房'}"/>
                                <label for="sex1">商品房</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="houseNature" value="自建房" checked="${contactSurveyReport?.houseNature == '自建房'}"/>
                                <label for="sex2">自建房</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="houseNature" value="集资房" checked="${contactSurveyReport?.houseNature == '集资房'}"/>
                                <label for="sex2">集资房</label>
                            </div>
                            <div class="radio radio-info radio-inline">
                                <g:radio name="houseNature" value="经济适用房" checked="${contactSurveyReport?.houseNature == '经济适用房'}"/>
                                <label for="sex1">经济适用房</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="houseNature" value="限价房" checked="${contactSurveyReport?.houseNature == '限价房'}"/>
                                <label for="sex2">限价房</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="houseNature" value="其他" checked="${contactSurveyReport?.houseNature == '其他'}"/>
                                <label for="sex2">其他</label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required">房屋类型</label>
                        <div class="col-md-8">
                            <div class="radio radio-info radio-inline">
                                <g:radio name="houseType" value="现楼" checked="${contactSurveyReport?.houseType == '现楼'}"/>
                                <label for="sex1">现楼</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="houseType" value="期楼" checked="${contactSurveyReport?.houseType == '期楼'}"/>
                                <label for="sex2">期楼</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="houseType" value="一手楼" checked="${contactSurveyReport?.houseType == '一手楼'}"/>
                                <label for="sex2">一手楼</label>
                            </div>
                            <div class="radio radio-info radio-inline">
                                <g:radio name="houseType" value="二手楼" checked="${contactSurveyReport?.houseType == '二手楼'}"/>
                                <label for="sex1">二手楼</label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required">贷款最终收款人</label>
                        <div class="col-md-6">
                            <div class="radio radio-info radio-inline">
                                <g:radio name="finalPayeeOfLoans" value="售房人（或委托收款人）" checked="${contactSurveyReport?.finalPayeeOfLoans == '售房人（或委托收款人）'}"/>
                                <label>售房人（或委托收款人）</label>
                            </div>
                            <div class="radio radio-info radio-inline ">
                                <g:radio name="finalPayeeOfLoans" value="其他" checked="${contactSurveyReport?.finalPayeeOfLoans == '其他'}"/>
                                <label>其他（名称）</label>
                            </div>
                            <div class=" radio-info radio-inline">
                                <input type="text" class="form-control"  placeholder="请输入其他名称" id="ohterPayeeOfLoans" name="ohterPayeeOfLoans" value="${contactSurveyReport?.ohterPayeeOfLoans}">
                            </div>
                        </div>
                    </div>
                    <hr style="border:0.5px dashed">
                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required" >1.抵押物价值评估日期</label>
                        <div class="col-md-8" >
                            %{--<div class="input-daterange input-group p-r-n">--}%
                                %{--<input type="text" class="form-control datepicker1" placeholder="请输入日期"--}%
                                       %{--value="" name="evaluateDate" style="text-align: left" />--}%
                            %{--</div>--}%
                            <g:datePicker name="evaluateDate" default="none" noSelection="['': '请输入日期']"
                                          value="${contactSurveyReport?.evaluateDate}" precision="day"/>
                        </div>
                    </div>

                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required" >评估机构全称</label>
                        <div class="col-md-8" >
                            <input type="text" class="form-control" name="evaluateAccount" id="evaluateAccount" value="${contactSurveyReport?.evaluateAccount}" placeholder="请输入评估机构全称">
                        </div>
                    </div>
                    <div class="form-group ">
                        <label class="col-md-2 control-label is-required" >评估报告编号</label>
                        <div class="col-md-8" >
                            <input type="text" class="form-control" name="evaluateReportNumber"  value="${contactSurveyReport?.evaluateReportNumber}" placeholder="请输入评估报告编号">
                        </div>
                    </div>
                    <div class="form-group ">
                        <label class="col-md-4 control-label is-required mediaStyle">2.抵押物实地查看记录（若有。如与所有权证书所描述不一致，请详细说明）</label>
                    </div>
                    <div class="form-group ">
                        <div class="col-md-8 col-md-offset-2">
                            <input type="text" class="form-control" name="houseRealSituationRecord" value="${contactSurveyReport?.houseRealSituationRecord}" >
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-3 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="create3" value="下一步"/>
                            <button type="button" class="btn cancelButton" style="margin-left: 20px;">取消</button>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>


</div>
<g:javascript>
    $(function () {
        $('.datepicker').datepicker({
            language: 'zh-CN',
            format:"yyyy-mm-dd"
        });
        $('.input-group.date').datepicker({ });
        $('.input-daterange').datepicker({ });

    });
</g:javascript>
</body>
</html>
